.tab-wrapper {
    display: flex;
    margin-bottom: 0;

    &.center {
        justify-content: center;
    }

    &.right {
        justify-content: flex-end;
    }

    .tab-item {
        padding: 12px 0;
        margin: 0 12px;
        color: var(--tab-item-color);
        font-size: $font-size-medium;
        white-space: nowrap;
        cursor: pointer;

        &.active {
            color: var(--tab-item-active-color);

            &:hover {
                color: var(--tab-item-active-color);
            }
        }

        // 对应prop中的type字段
        &.small {
            font-size: $font-size-sm;

            &.active {
                color: $theme-color;
            }
        }

        &.theme {
            font-size: $font-size;

            &.active {
                color: $theme-color;
                border-bottom: 2px solid $theme-color;
                font-weight: $font-weight-bold;
            }
        }

        &.split {
            font-size: $font-size-sm;
            padding: 4px 12px;
            margin: 0 16px;
            border-radius: 999em;

            &.active {
                color: $theme-color;
                background: var(--shallow-theme-bgcolor);
            }

            &:not(:last-child) {
                &::after {
                    position: relative;
                    left: 28px;
                    width: 1px;
                    height: 100%;
                    background: var(--border);
                    display: inline-block;
                    vertical-align: middle;
                    content: " ";
                }

                .title {
                    vertical-align: middle;
                }
            }
        }

        &:hover {
            color: var(--tab-item-hover-color);
        }
    }
}
